package com.fyj.pojo;

import lombok.Data;

import java.io.Serializable;

/**
 * @author 钰杰
 * @className Result
 * @description VX:FengYJ996
 * @date 2019/11/3018:40
 */
@Data
public class Result implements Serializable {
    private boolean flag;   //是否成功
    private Integer code;   // 返回码
    private String message; //返回信息
    private Object data;    // 返回数据

    public Result(boolean flag, Integer code, String message, Object data) {
        this.flag = flag;
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
